package com.msjh.vueservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.msjh.vueservice.entity.Risk;
import com.msjh.vueservice.mapper.RiskMapper;
import com.msjh.vueservice.service.RiskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zy
 * @since 2022-06-13
 */
@Service
public class RiskServiceImpl extends ServiceImpl<RiskMapper, Risk> implements RiskService {

    @Override
    public List<Risk> getAllRisks() {

        QueryWrapper<Risk> queryWrapper = new QueryWrapper<>();
        List<Risk> risks = this.baseMapper.selectList(queryWrapper);
        return risks;
    }
}
